(function(l){function m(a){return typeof a==="string"?document.getElementById(a):a}function j(a,b,c){d.attachEvent?a.attachEvent("on"+b,function(){c.call(a)}):a.addEventListener(b,c,false)}function n(){for(var a=[["Windows NT 5.1","WinXP"],["Windows NT 6.0","WinVista"],["Windows NT 6.1","Win7"],["Windows NT 5.2","Win2003"],["Windows NT 5.0","Win2000"],["Macintosh","Macintosh"],["Windows","WinOther"],["Ubuntu","Ubuntu"],["Linux","Linux"]],b=0,c=a.length;b<c;++b)if(k.indexOf(a[b][0])!=-1)return a[b][1];
return"Other"}function o(){for(var a=["Opera","Chrome","Safari","MSIE 6","MSIE 7","MSIE 8","Firefox"],b=0,c=a.length;b<c;++b)if(k.indexOf(a[b])!=-1)return a[b].replace(" ","");return"Other"}function p(){var a=d.screen;return a?a.width+"x"+a.height:""}l.namespace("TB");var k=navigator.userAgent,d=window,i=0,e=0,f=[],g=0;TB.HubbleMonitor={init:function(a){a=a||{};var b=a.apiUrl||"http://igw.monitor.taobao.com/monitor-gw/receive.do",c="pageId"in a?a.pageId:0,h="sampleRate"in a?a.sampleRate:1E4,q=this;
if(c)if(!parseInt(Math.random()*h))if(i=d.g_hb_monitor_st){e=+new Date;f=a.sections||[];g=e;f.length>0&&this.monitorSection(f[0]);j(d,"load",function(){q.sendData(+new Date,b,c)})}},monitorSection:function(a){a=m(a);if(!(!a||a.nodeType!==1)){a=a.getElementsByTagName("img");for(var b=0,c=a.length;b<c;++b)j(a[b],"load",function(){var h=+new Date;if(h>g)g=h})}},sendData:function(a,b,c){a=[b,"?page_id=",c,"&os=",n(),"&bt=",o(),"&scr=",p(),"&fl=",a-i,"&dl=",e-i];f.length>0&&a.push("&sl="+(g-e));(new Image).src=
a.join("")}}})(KISSY);
